<?php
require_once 'vendor/autoload.php';

// 初始化应用
$app = new \think\App();
$app->initialize();

use app\model\SystemConfig;

try {
    echo "检查Token配置...\n";
    
    $orderToken = SystemConfig::getConfig('xiaofeng_order_token');
    $createOrderToken = SystemConfig::getConfig('xiaofeng_create_order_token');
    
    echo "晓风订单token: " . ($orderToken ? '已配置' : '未配置') . "\n";
    echo "晓风下单token: " . ($createOrderToken ? '已配置' : '未配置') . "\n";
    
    if ($orderToken) {
        echo "订单token值: " . substr($orderToken, 0, 10) . "...\n";
    }
    
    if ($createOrderToken) {
        echo "下单token值: " . substr($createOrderToken, 0, 10) . "...\n";
    }
    
} catch (Exception $e) {
    echo "错误: " . $e->getMessage() . "\n";
} 